package entity;

import java.util.ArrayList;

public class Group {
    private String id;//群号
    private String name;//群昵称
    private String host_username;//群主账号
    private int groupPort=Math.abs((int) (Math.random() * 10000) + 10000);//群端口号
    private ArrayList<User> users;
    public Group(){}

    public Group(String id, String name, String host_username) {
        this.id = id;
        this.name = name;
        this.host_username = host_username;
    }
    public String getId() {
        return id;
    }
    public void setId(String id) {
        this.id = id;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getHost_username() {
        return host_username;
    }
    public void setHost_username(String host_username) {
        this.host_username = host_username;
    }
    public ArrayList<User> getUsers() {
        return users;
    }
    public void setUsers(ArrayList<User> users) {
        this.users = users;
    }
}
